package main

import (
	"29421610-f85f-b08c-2357-79656d923d48/gee"
	"fmt"
	"net/http"
)

func main() {
	r := gee.New()
	// 注册对应路由的处理逻辑方法
	r.GET("/", func(w http.ResponseWriter, req *http.Request) {
		fmt.Fprintf(w, "恭喜你来到了跟路由！！！！！！！！！！！")
	})

	r.GET("/hello", func(w http.ResponseWriter, req *http.Request) {
		for k, v := range req.Header {
			fmt.Fprintf(w, "%q ===== %q\n", k, v)
		}
	})

	r.Run(":9999")
}
